package com.online.onlinestudent.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.online.onlinestudent.entity.Student;
import com.online.onlinestudent.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TeacherMapper extends BaseMapper<Teacher> {
    @Select("select * from teachers where username = #{username}")
    List<Teacher> selectByUsername(String username);
}
